home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Cursor / CursorController.h < prev    next >
Text File  |  2000-06-23  |  729b  |  42 lines

  1. // CursorController.h
  2.  
  3. #ifndef CursorController_h
  4. #define CursorController_h
  5.  
  6. #ifndef MouseWatcher_h
  7. #include "MouseWatcher.h"
  8. #endif
  9. #ifndef Ear_h
  10. #include "Ear.h"
  11. #endif
  12. #ifndef CursorUser_h
  13. #include "CursorUser.h"
  14. #endif
  15.  
  16. class CursorObject;
  17.  
  18. class CursorController: public MouseWatcher,
  19.                                 public CursorUser
  20.   {
  21.     private:
  22.         const CursorObject *current;
  23.         bool watchShowing;
  24.         Ear<MouseWatcher> userStateChanged;
  25.         
  26.         CursorController();
  27.         
  28.         virtual void MouseMoved( const MouseEvent&,
  29.                                          RegionObject& sleep );
  30.         
  31.         // not implemented:
  32.             CursorController( const CursorController& );
  33.             void operator=( const CursorController& );
  34.     
  35.     public:
  36.         static CursorController& The();
  37.         
  38.         void ShowWatch();
  39.   };
  40.  
  41. #endif
  42.